import request from '~/utils/request'
export default{
  // 3.根据课程id查询课程详情
  getCourse(id) {
    return request({
      url: `/api/edu/course/${id}`,
      method: 'get'
    })
  },
  // 2.根据课程id查询课程列表
  getCourses(searchObj) {
    return request({
      url: `/api/edu/course`,
      method: 'get',
      data: searchObj
    })
  },
  // 1、根据讲师id查询课程列表
  getCoursesByTeacherId(teacherId) {
    return request({
      url: `/api/edu/course/queryCoursesByTeacherId/${teacherId}`,
      method: 'get'
    })
  }

}
